import { createRouter, createWebHistory } from 'vue-router'
import HomePage from '../pages/HomePage.vue'
import RestaurantPage from '../pages/RestaurantPage.vue'
import UserInfoPage from '../pages/UserInfoPage.vue'

const routes = [
    {
        path: '/',
        name: 'Home',
        component: HomePage
    },
    {
        path: '/restaurant/:id',
        name: 'Restaurant',
        component: RestaurantPage
    },
    {
        path: '/user-info',
        name: 'UserInfo',
        component: UserInfoPage
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
